Xbasic

SQL::ConnectionCreateIndex Method

Syntax

Result_Flag as L = CreateIndex(TableInfo as SQL::TableInfo, IndexInfo as SQL::IndexInfo)

Arguments

TableInfoSQL::TableInfo

A SQL::TableInfo object.

IndexInfoSQL::IndexInfo

A SQL::IndexInfo object.

Returns

Result_FlagLogical

TRUE (.T.) if the operation was successful; otherwise FALSE (.F.).

Description

Create an index on the specified table in the currently connected database using the TableInfo and IndexInfo specifications.

Discussion

The CreateIndex() method creates an index on the specified table in the currently connected database using the TableDef and IndexDef specifications.

See Also